package com.yishe.framework.util;

import java.util.UUID;

public class UUIDGenerator {
	public static String getUUID() {
		return UUID.randomUUID().toString().replaceAll("-", "");
	}

	public static String[] getUUID(int number) {
		if (number < 1) {
			return new String[0];
		}
		String[] ss = new String[number];
		for (int i = 0; i < number; i++) {
			ss[i] = getUUID();
		}
		return ss;
	}

	public static void main(String[] args) {
		System.out.println(getUUID());
		String[] ss = getUUID(20);
		for (int i = 0; i < ss.length; i++)
			System.out.println(ss[i]);
	}
}

